<template>
<div>
  <h1>待审核小说</h1>
  <ul>
    <li v-for="i in list" :key="i.id">
      <router-link :to="{path:'examine',query:{'id':i.id}}">{{i.title}}</router-link>
    </li>
  </ul>

</div>
</template>

<script>
import axios from 'axios'
export default {
  name: "getexamine",
  data(){
    return{
      list:[]
    }
  },
  methods:{
    get_list(){
      axios({url:'http://localhost:8000/getexamine',method:'get'}).then(res=>{
        if(res.data.code==200){
          this.list = res.data.list
        }
      })
    }
  },
  mounted() {
    this.get_list()
  }
}
</script>

<style scoped>

</style>